package com.baway.login.api

import com.baway.common.api.BaseApiServer
import com.baway.common.entity.BaseResponse
import com.baway.common.entity.UserEntity
import retrofit2.http.POST
import retrofit2.http.Query

/**
 * Author: Jason Zhang
 * Date: 2025/8/29
 * Desc:
 */
interface LoginApiServer: BaseApiServer {

    @POST("/api/user/login")
    suspend fun loginToServer(@Query("username") userName: String, @Query("password") pwd: String): BaseResponse<UserEntity>

    @POST("/api/user/register")
    suspend fun registerToServer(@Query("username") userName: String, @Query("password") pwd: String): BaseResponse<UserEntity>


}